{include file="file:$admin_theme_global_path/_header.tpl"
	masthead=$page_title pageTitle=$page_title current="pageparts_admin_editpage"}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/pageparts/admin/index{/url}">{t}Back To Page List{/t}</a></li>
		{if $success ne null and $success ne ""}
			<li><a href="{url}/pageparts/admin/editpage/id/{$page_id}{/url}">{t}Continue Editing{/t}</a></li>
		{/if}
	</ul>
</div>
<div class="grid_12">
	{if $contentpage ne null}
		<form action="{url}/pageparts/admin/editpage/id/{$contentpage.id}{/url}" method="post" enctype="multipart/form-data">
			<p>
				<label for="title">{t}Title{/t}</label>
				<input name="title" id="title" value="{$contentpage.title}" />
			</p>
			<p>
				<label for="category_id">{t}Category{/t}</label>
				{html_options name="category_id" id="category_id" options=$categories selected=$contentpage.category_id}
			</p>
			<p>
				<label for="modulename">{t}Module{/t}</label>
				<input name="modulename" id="modulename" value="{$contentpage.module}" />
			</p>
			<p>
				<input type="submit" class="button submit" value="{t}Save Changes{/t}" />
			</p>
		</form>
	{/if}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
